package com.qf.air.search.service;

import com.qf.air.search.entity.Air;
import org.elasticsearch.action.search.SearchResponse;

import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author 10537
 * @version V1.0
 * @Date 2021/11/4 10:01
 */

public interface ElasticAirService {

    //SearchResponse searchAir(Integer page, Integer rows, Integer districtId, String monitoringStation, Date startTime, Date endTime) throws IOException;
    SearchResponse searchAir(Map map) throws IOException;

    void deleteAir(Integer id) throws IOException;

    void indexAir(Map air) throws IOException;

    void updateAir(Map air) throws IOException;

    List<Map> getDistrictNameEcharts() throws IOException;
}
